package com.zndroid.timePicker.impl;

import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import static com.zndroid.timePicker.impl.FormatType.Y_M_D_H_M_S;
import static com.zndroid.timePicker.impl.FormatType.Y_M_D_H_M;
import static com.zndroid.timePicker.impl.FormatType.Y_M_D;
import static com.zndroid.timePicker.impl.FormatType.M_D;
import static com.zndroid.timePicker.impl.FormatType.H_M;
import static com.zndroid.timePicker.impl.FormatType.H_M_S;

/**
 * Created by lzy on 2020/12/2.
 */

@StringDef({Y_M_D_H_M_S, Y_M_D_H_M, Y_M_D, M_D, H_M, H_M_S})
@Retention(RetentionPolicy.SOURCE)
public @interface FormatType {
    String Y_M_D_H_M_S = "yyyy-MM-dd HH:mm:ss";//年-月-日-时-分-秒
    String Y_M_D_H_M = "yyyy-MM-dd HH:mm";//年-月-日-时-分
    String Y_M_D = "yyyy-MM-dd";//年-月-日
    String M_D = "MM-dd";//月-日
    String H_M = "HH:mm";//时-分
    String H_M_S = "HH:mm:ss";//时-分-秒
}
